-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRR-11077: Fixed Scroller to prevent the native scrolling behavior caused by keydown events when the popup is opened #1756
Conversation
…ixedPopupPanels Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1756 +/- ##
===========================================
+ Coverage 80.89% 80.96% +0.07%
===========================================
Files 148 148
Lines 6672 6709 +37
Branches 1988 2005 +17
===========================================
+ Hits 5397 5432 +35
- Misses 967 969 +2
Partials 308 308 ☔ View full report in Codecov by Sentry. |
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Please resolve the merge conflict. |
.travis.yml
Outdated
@@ -16,7 +16,7 @@ install: | |||
- npm install | |||
- npm link | |||
- popd | |||
- git clone --branch=develop --depth 1 https://github.com/enactjs/enact ../enact | |||
- git clone --branch=feature/WRR-11077 --depth 1 https://github.com/enactjs/enact ../enact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to revert the change before merging.
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)
Checklist
Issue Resolved / Feature Added
When the Scroller has a button that opens FixedPopupPanel. The issue is that when press the down key at the moment the popup is opened the scroller behind the FixedPopupPanel scrolls down.
Resolution
To fix this issue, we have to prevent the native scrolling behavior caused by keydown events.
I created preventScroll function which call
preventDefault
when a keydown event is caused by a directional key and the spotlight is paused.I added this preventScroll function to useThemeScroll so that it can be passed to ui/Scroller and used as prop.
Also I added the issue case in Scroller qa-sampler
Additional Considerations
Links
WRR-11077
Comments